#ifndef SIGNUPWIDGET_H
#define SIGNUPWIDGET_H

#include <QWidget>
#include <QMouseEvent>
#include <QFileDialog>
#include <QDir>
#include <QFile>
#include <QRegularExpression>
#include "UserLayer/External/pagemanger.h"
#include "AbstractLayer/Network/messageclass.h"
namespace Ui {
class SignUpWidget;
}

class SignUpWidget : public QWidget
{
    Q_OBJECT

public:
    explicit SignUpWidget(QWidget *parent = nullptr);
    ~SignUpWidget();

private:

    void signUpPass();
    void signUpError();
    Ui::SignUpWidget *ui;
    bool m_bDrag;
    QPoint mouseStartPoint;
    QPoint windowTopLeftPoint;
    QString avatar;
    QString name;
    QString oc;
protected:
    void mousePressEvent(QMouseEvent *event);
    void mouseMoveEvent(QMouseEvent *event);
    void mouseReleaseEvent(QMouseEvent *event);
private slots:
    void on_btn_close_clicked();
    void on_btn_min_clicked();
    void on_btn_signup_clicked();
    void on_btn_back_clicked();
    void on_btn_chooseavatar_clicked();
    void on_btn_passwordvisible_clicked(bool checked);
    void on_btn_surepasswordvisible_clicked(bool checked);
};

#endif // SIGNINWIDGET_H
